package cc.lj.internal.coupons.infrastructure.repository;

import cc.lj.internal.core.model.PageParam;
import cc.lj.internal.coupons.domain.ticket.repository.ITicketPackageRepository;
import cc.lj.internal.coupons.infrastructure.po.TicketPackagePO;
import cc.lj.internal.coupons.infrastructure.repository.mysql.TicketPackageMysqlRespository;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;


/**
 * 券包表仓储实现
 * @author liangxifeng
 * @date 2023-08-24
 */
@Repository("ticketPackageRepository")
public class TicketPackageRepository implements ITicketPackageRepository {
    @Resource(name="ticketPackageMysqlRespository")
    private TicketPackageMysqlRespository repository;


    @Override
    public Integer updateById(TicketPackagePO entityPO) {
        return repository.updateById(entityPO);
    }


    @Override
    public TicketPackagePO getById(Integer id) {
        TicketPackagePO entityPO = repository.getById(id);
        return entityPO;
    }

    @Override
    public PageInfo<TicketPackagePO> selectPage(PageParam pageParam) {
        return repository.selectPage(pageParam);
    }

    @Override
    public List<TicketPackagePO> getList(TicketPackagePO ticketPackagePO) {
        return repository.getList(ticketPackagePO);
    }

}
